Optimal. Leaf size=72 \[ -\frac {a (a-2 b) \cosh (c+d x)}{d}+\frac {a^2 \cosh ^3(c+d x)}{3 d}+\frac {(2 a-b) b \text {sech}(c+d x)}{d}+\frac {b^2 \text {sech}^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {4218, 459}
\begin {gather*} \frac {a^2 \cosh ^3(c+d x)}{3 d}-\frac {a (a-2 b) \cosh (c+d x)}{d}+\frac {b (2 a-b) \text {sech}(c+d x)}{d}+\frac {b^2 \text {sech}^3(c+d x)}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 459
Rule 4218
Rubi steps
\begin {align*} \int \left (a+b \text {sech}^2(c+d x)\right )^2 \sinh ^3(c+d x) \, dx &=-\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right ) \left (b+a x^2\right )^2}{x^4} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \left (a (a-2 b)+\frac {b^2}{x^4}+\frac {(2 a-b) b}{x^2}-a^2 x^2\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {a (a-2 b) \cosh (c+d x)}{d}+\frac {a^2 \cosh ^3(c+d x)}{3 d}+\frac {(2 a-b) b \text {sech}(c+d x)}{d}+\frac {b^2 \text {sech}^3(c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.36, size = 83, normalized size = 1.15 \begin {gather*} \frac {\left (-26 a^2+168 a b-16 b^2-3 \left (11 a^2-64 a b+16 b^2\right ) \cosh (2 (c+d x))-6 a (a-4 b) \cosh (4 (c+d x))+a^2 \cosh (6 (c+d x))\right ) \text {sech}^3(c+d x)}{96 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(173\) vs.
\(2(68)=136\).
time = 1.73, size = 174, normalized size = 2.42
method | result | size |
risch | \(\frac {a^{2} {\mathrm e}^{3 d x +3 c}}{24 d}-\frac {3 a^{2} {\mathrm e}^{d x +c}}{8 d}+\frac {a b \,{\mathrm e}^{d x +c}}{d}-\frac {3 a^{2} {\mathrm e}^{-d x -c}}{8 d}+\frac {a \,{\mathrm e}^{-d x -c} b}{d}+\frac {a^{2} {\mathrm e}^{-3 d x -3 c}}{24 d}+\frac {2 \,{\mathrm e}^{d x +c} b \left (6 a \,{\mathrm e}^{4 d x +4 c}-3 b \,{\mathrm e}^{4 d x +4 c}+12 a \,{\mathrm e}^{2 d x +2 c}-2 b \,{\mathrm e}^{2 d x +2 c}+6 a -3 b \right )}{3 d \left (1+{\mathrm e}^{2 d x +2 c}\right )^{3}}\) | \(174\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 266 vs.
\(2 (68) = 136\).
time = 0.30, size = 266, normalized size = 3.69 \begin {gather*} \frac {1}{24} \, a^{2} {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} + a b {\left (\frac {e^{\left (-d x - c\right )}}{d} + \frac {5 \, e^{\left (-2 \, d x - 2 \, c\right )} + 1}{d {\left (e^{\left (-d x - c\right )} + e^{\left (-3 \, d x - 3 \, c\right )}\right )}}\right )} - \frac {2}{3} \, b^{2} {\left (\frac {3 \, e^{\left (-d x - c\right )}}{d {\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} + 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )} + 1\right )}} + \frac {2 \, e^{\left (-3 \, d x - 3 \, c\right )}}{d {\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} + 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )} + 1\right )}} + \frac {3 \, e^{\left (-5 \, d x - 5 \, c\right )}}{d {\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} + 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )} + 1\right )}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 212 vs.
\(2 (68) = 136\).
time = 0.41, size = 212, normalized size = 2.94 \begin {gather*} \frac {a^{2} \cosh \left (d x + c\right )^{6} + a^{2} \sinh \left (d x + c\right )^{6} - 6 \, {\left (a^{2} - 4 \, a b\right )} \cosh \left (d x + c\right )^{4} + 3 \, {\left (5 \, a^{2} \cosh \left (d x + c\right )^{2} - 2 \, a^{2} + 8 \, a b\right )} \sinh \left (d x + c\right )^{4} - 3 \, {\left (11 \, a^{2} - 64 \, a b + 16 \, b^{2}\right )} \cosh \left (d x + c\right )^{2} + 3 \, {\left (5 \, a^{2} \cosh \left (d x + c\right )^{4} - 12 \, {\left (a^{2} - 4 \, a b\right )} \cosh \left (d x + c\right )^{2} - 11 \, a^{2} + 64 \, a b - 16 \, b^{2}\right )} \sinh \left (d x + c\right )^{2} - 26 \, a^{2} + 168 \, a b - 16 \, b^{2}}{24 \, {\left (d \cosh \left (d x + c\right )^{3} + 3 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + 3 \, d \cosh \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \operatorname {sech}^{2}{\left (c + d x \right )}\right )^{2} \sinh ^{3}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 140 vs.
\(2 (68) = 136\).
time = 0.42, size = 140, normalized size = 1.94 \begin {gather*} \frac {a^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3} - 12 \, a^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + 24 \, a b {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + \frac {16 \, {\left (6 \, a b {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} - 3 \, b^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} + 4 \, b^{2}\right )}}{{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3}}}{24 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.50, size = 201, normalized size = 2.79 \begin {gather*} \frac {{\mathrm {e}}^{c+d\,x}\,\left (8\,a\,b-3\,a^2\right )}{8\,d}+\frac {{\mathrm {e}}^{-c-d\,x}\,\left (8\,a\,b-3\,a^2\right )}{8\,d}+\frac {a^2\,{\mathrm {e}}^{-3\,c-3\,d\,x}}{24\,d}+\frac {a^2\,{\mathrm {e}}^{3\,c+3\,d\,x}}{24\,d}-\frac {8\,b^2\,{\mathrm {e}}^{c+d\,x}}{3\,d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}+3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}+1\right )}+\frac {2\,{\mathrm {e}}^{c+d\,x}\,\left (2\,a\,b-b^2\right )}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}+\frac {8\,b^2\,{\mathrm {e}}^{c+d\,x}}{3\,d\,\left (2\,{\mathrm {e}}^{2\,c+2\,d\,x}+{\mathrm {e}}^{4\,c+4\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________